package oop7;

/**
 * @author oldliu
 * @since 1.0
 */
public class StuTest {
    public static void main(String[] args) {
        Student stu=new Student("小王","男",23);
        System.out.println(stu);
        stu.setAge(21);
        //stu.sex="女";error
        System.out.println(stu);

        Student s3=new Student("小王","女",20);

        final int i=100;
        System.out.println(">>>>>>>>>>>>xueshengt对象比较");
        System.out.println(stu.equals(s3));
        System.out.println("学生和字符串做比较");
        System.out.println(stu.equals("老吴"));
        //i=23;//error
    }
}
